package person.bing.fbcloud.util.service;

import cn.hutool.json.JSONObject;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import person.bing.fbcloud.api.entity.ForumUser;
import person.bing.fbcloud.api.entity.SysOauthClientDetails;
import person.bing.fbcloud.api.entity.SysRouteDetail;
import person.bing.fbcloud.common.core.util.R;

import java.util.List;

/**
 * @author: mengfanbing
 * @date: 2019/12/20 11:54
 */
@Component
@FeignClient(value = "fbcloud-forum-biz")
public interface ForumService {
    @PostMapping("/client/getClientById")
    R<SysOauthClientDetails> getClient(JSONObject jsonObject);

    @PostMapping("/forumuser/getUserByUserName")
    R<ForumUser> getUserByUserName(JSONObject jsonObject);

    @PostMapping("/sysroutedetail/routeDetails")
    R<List<SysRouteDetail>> routeDetails();
}
